package me.itsoo.artemis.framework.repository.executor.handler;

import lombok.extern.slf4j.Slf4j;
import me.itsoo.artemis.framework.core.collect.ImmutableMap;
import me.itsoo.artemis.framework.core.converter.TypeConvertor;
import me.itsoo.artemis.framework.core.converter.datetime.ChronoTypeConvertor;
import me.itsoo.artemis.framework.core.converter.number.NumberTypeConvertor;

import java.util.Map;

/**
 * ParameterTypeHandler
 *
 * @author zxy
 * @version 0.0.1
 * @since 2023/5/28
 */
@Slf4j
public class ParameterTypeHandler {

    private static final Map<Class<?>, ? extends TypeConvertor> TYPE_CONVERTER_POLICIES = ImmutableMap.<Class<?>, TypeConvertor>builder()
            .putAll(TypeConvertor.TYPE_CONVERTORS)
            .putAll(NumberTypeConvertor.TYPE_CONVERTORS)
            .putAll(ChronoTypeConvertor.TYPE_CONVERTORS)
            .build();

    // TODO: 对入参进行处理，以支持丰富的数据库字段类型值的处理（增/删/改操作）

}
